use std::fs::read;
use std::ops::Deref;
use std::borrow::Borrow;

fn main() {
    let coin = Coin::Quarter("hahaha".to_string());
    let coinOption = Option::Some(coin);


    let val = match coinOption {
        Some(coin) => {
            match coin {
                Coin::Penny => 1,
                Coin::Nickel => 5,
                Coin::Dime => 10,
                Coin::Quarter(name) => {
                    println!("{}", name);
                    25
                }
            }
        }
        None => {
            0
        }
    };

    println!("{}", val);
}

enum Coin {
    Penny,
    Nickel,
    Dime,
    Quarter(String),
}